<?php
 if( isset($_POST['titre'])  && isset($_POST['info']))
{
$com = stripslashes(str_replace ("\n", '', nl2br($_POST['info'])));
include ('connect.php');
$date=date('Y-m-d');
mysql_query("INSERT INTO `ap3_sp_news` 
VALUES (
NULL , '".$_POST['titre']."', '".$com."', '".$date."'
);");

 header ("location: .?page=".$_POST['page']);
}

echo "erreur d'ecriture";



?>
